﻿extends _system
block content
	div.modal.fade#edit_modal(tabindex="-1" role="dialog" aria-labelledby="edit_modal" aria-hidden="true")
		div.modal-dialog.modal-lg
			div.modal-content
				div.modal-header
					button.close(type="button" data-dismiss="modal" aria-label="Close")
						span(ria-hidden="true") &times;
					h4.modal-title#edit_modal 菜单信息
				div.modal-body
					form
						input.id(type="hidden", name="id")
						.form-group
							label 菜单名称：
								input.form-control.name(type="text", name="name")
							div.alert.alert-danger(role="alert", hidden="hidden")
						.form-group
							label 菜单路径：
							input.form-control.path(type="text", name="path")
							div.alert.alert-danger(role="alert", hidden="hidden")
						.form-group
							label 权限：
							each account in accountType
								div.checkbox
									label
										input.role(type="checkbox", value="#{account}", name="role")
										| #{account}
				div.modal-footer
					button.btn.btn-default(data-dismiss="modal") 取消
					button.btn.btn-primary#save_btn 保存
	div.col-sm-9.col-sm-offset-3.col-md-10.col-md-offset-2.main#config
		h1.page-header #{title}
			div.btn-group.float-right(role="group")
				button.reset-btn.btn.btn-default.float-right.refresh-btn(type="button")
					span.glyphicon.glyphicon-refresh(aria-hidden="true")
				button.save-btn.btn.btn-primary.create-btn(type="button")
					span.glyphicon.glyphicon-plus(aria-hidden="true")
		div.content
			div.panel
				table.table.table-bordered.table-hover
					thead
						tr
							th 名称
							th 路径
							th 角色
							th 操作
					tbody.menus
	script(type="text/javascript", src="/js/system/menu.js")
